import {createStackNavigator} from 'react-navigation';
import About from './src/routes/About';
import Home from './src/routes/Home';
import Video from './src/routes/Video';
import Picture from './src/routes/Picture';
import Article from './src/routes/Article';
import ArticleDetail from './src/routes/ArticleDetail';
import VideoDetail from './src/routes/VideoDetail';
import PictureDetail from './src/routes/PictureDetail';
//import PictureZoom from './src/routes/PictureZoom';

//https://www.jianshu.com/p/2f575cc35780
//https://github.com/react-navigation/react-navigation
//https://www.cnblogs.com/summary-2017/p/7571953.html
//https://blog.csdn.net/binglan520/article/details/70239485
const options = {navigationOptions: {
  header: null,
}};

const app = createStackNavigator({
  Home: { screen: Home, ...options},
  Picture: { screen: Picture, ...options },
  Video:{screen: Video, ...options},
  Article:{screen: Article,...options},
  PictureDetail: { screen: PictureDetail, ...options },
  VideoDetail:{screen:VideoDetail,...options},
  ArticleDetail:{screen: ArticleDetail,...options},
  //PictureZoom:{screen:PictureZoom,...options},
  About:{screen: About,...options},
},
{
  initialRouteName: 'Home',  // 初始显示的Tab对应的页面路由名称
}
);

export default app;